class Foo(object):
    CITY = 'bj'

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def func(self):
        pass


# print(Foo.CITY)
# print(Foo.func)

# 类的__ dict __ 属性
print(Foo.__dict__)

# 类对象 的__ dict __ 属性
obj1 = Foo('小明', 54)
print(obj1.__dict__)

# __ dict __  查看对象其属性
